<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
            <%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/common1.js"></script>
<title>Insert title here</title>
</head>
<body>
<c:if test="${goodsList!=null}">
<c:forEach items="${goodsList}" var="goods">
<div class="list-group" style="width:750px; margin-left:200px;">
  <a href="#" class="list-group-item" target="_top">
    <h4 class="list-group-item-heading">${goods.gname }</h4>
    <p>
        <p>商品所属：${goods.goodsAllClass}</p>
        <p>商品备注：${goods.gdetail}</p>
      <span>商品状态：</span>
      <c:if test="${goods.status==1}">
      <span class="text-danger">已卖出</span>
      </c:if>
      <c:if test="${goods.status==-1}">
      <span class="text-primary">未卖出</span>
      </c:if>
      <p>
      <img src="${goods.gphoto }" alt="..." class="img-thumbnail" width="100px" height="100px">
      </p>
    </p>
  </a>
</div>
</c:forEach>
</c:if>
</body>
</html>